<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
    <style>
        #selectManager {
            width: 80%;
        }

        #find {
            background-color: #4D67F8;
        }

        .layui-layer-page .layui-layer-content {
            overflow: visible !important;
        }
    </style>
</head>

<body>
    <div class="layui-tab-item layui-show">
        <table class="layui-show" id="currentTableId" lay-filter="currentTableFilter"></table>
    </div>

    <script src="../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
    <script src="../js/echarts.js" ,type="text/javascript"></script>
    <script>
        layui.use(['form', 'table', 'element'], function () {
            var $ = layui.jquery,
                form = layui.form,
                table = layui.table;
            var element = layui.element;
            var aname = localStorage.getItem('aname');
            table.render({
                elem: '#currentTableId',
                url: '/seeStudent',
                where: {
                    "aname": aname
                },
                defaultToolbar: ['exports', 'print'],
                cols: [
                    [{
                            field: 's_id',
                            width: 130,
                            title: '学号',
                            sort: true
                        },
                        {
                            field: 's_name',
                            title: '姓名',
                            Width: 130,
                        },
                        {
                            field: 'class',
                            Width: 150,
                            title: '班级',
                            sort: true
                        },
                        {
                            field: 'score',
                            Width: 50,
                            title: '量化奖励',
                            sort: true
                        },
                        {
                            field: 'lh',
                            Width: 100,
                            title: '是否为优秀作品',
                        },
                    ]
                ],
                limits: [10, 15, 20, 25, 50, 100],
                limit: 15,
                page: true,
                skin: 'line'
            });
        })
    </script>

</body>

</html>